<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('查看公告信息')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-type-edit" th:object="${notice}">
        <input name="typeId" type="hidden" th:field="*{noticeId}"/>
        <div class="form-group">
            <label class="col-sm-3 control-label ">公告类型：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="typeName"  th:field="*{typeName}" onfocus=this.blur()>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">公告信息内容：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="typeDesc" th:field="*{noticeDesc}" onfocus=this.blur()>
            </div>
        </div>

    </form>
</div>
<th:block th:include="include :: footer" />
<script type="text/javascript">

    function edit() {

        $.ajax({
            cache : true,
            type : "POST",
            url : ctx + "notice/type/selDesc",
            data : {

            },
            async : false,
            error : function(request) {
                $.modal.alertError("系统错误");
            },
            success : function(data) {
                $.operate.successCallback(data);
            }
        });
    }

    function submitHandler() {
        if ($.validate.form()) {
            edit();
        }
    }
</script>
</body>
</html>
